const axios = require('axios')
const path = require('path')

// 导入配置文件
const config = require(path.join(__dirname,"../config.js"))

var instance = axios.create({
    baseURL: config.api.baseURL,
    timeout: 10000,
    auth: {
        username:config.api.username,
        password:config.api.password
    }
})

module.exports = instance